<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<c:url var="securityAction" value="/j_spring_security_check" />
<form action="${securityAction}" method="post">
	<c:if test="${not empty param.login_error}">		
		<div>
			<c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />.
		</div>
	</c:if>
	<table width="320" border="0" cellspacing="0" cellpadding="3">
		<tr>
			<td width="85" align="right">Usuario:</td>
			<td width="223"><input type="text" name="j_username" id="j_username"class="campos_login" /></td>
		</tr>
		<tr>
			<td align="right">Contraseña:</td>
			<td><input type="password" name="j_password" id="j_password"class="campos_login" /></td>
		</tr>
		<tr>
			<td align="right">&nbsp;</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td align="right">&nbsp;</td>
			<td><input type="image" name="imageField" id="imageField" src="<c:url value="/images/btn_login.png" />" /></td>
		</tr>
	</table>
</form>